package com.fas.system.service;

import com.fas.common.core.domain.AjaxResult;
import com.fas.system.domain.FasEquipment;
import com.fas.system.domain.FasEquipmentStatusHistory;
import com.fas.system.domain.vo.EquipmentAlarmVo;
import com.fas.system.domain.vo.EquipmentVo;

import java.util.List;

/**
 * 设备信息Service接口
 *
 * @author ruoyi
 * @date 2022-05-05
 */
public interface IFasEquipmentService
{
    /**
     * 查询设备信息
     *
     * @param id 设备信息主键
     * @return 设备信息
     */
    public FasEquipment selectFasEquipmentById(Long id,Long deptId);

    /**
     * 查询设备信息列表
     *
     * @param fasEquipment 设备信息
     * @return 设备信息集合
     */
    public List<FasEquipment> selectFasEquipmentList(FasEquipment fasEquipment);

    /**
     * 新增设备信息
     *
     * @param fasEquipment 设备信息
     * @return 结果
     */
    public int insertFasEquipment(FasEquipment fasEquipment);

    /**
     * 修改设备信息
     *
     * @param fasEquipment 设备信息
     * @return 结果
     */
    public int updateFasEquipment(FasEquipment fasEquipment);

    /**
     * 批量删除设备信息
     *
     * @param ids 需要删除的设备信息主键集合
     * @return 结果
     */
    public int deleteFasEquipmentByIds(Long[] ids);

    /**
     * 删除设备信息信息
     *
     * @param id 设备信息主键
     * @return 结果
     */
    public int deleteFasEquipmentById(Long id);

    /**
     * 总公司
     * @param fasEquipment
     * @return
     */
    List<FasEquipment> findAllEquipment(FasEquipment fasEquipment);

    List<FasEquipment> findLikeEngineer(FasEquipment fasEquipment);

    /**
     * 设备详细信息
     * @param equipmentNumber
     * @return
     */
    List<FasEquipment> equipmentdetails(String equipmentNumber);

    /**
     * 设备首页数据查询
     * @param fasEquipment
     * @return
     */
    List<FasEquipment> findAll(FasEquipment fasEquipment);

    AjaxResult updateDeviceStatus(EquipmentVo equipmentVo);

    int read(Integer alarmId);

    /**
     * 设备未读消息列表
     * @return
     */
    List<EquipmentAlarmVo> unreadList(Integer userId);

    List<FasEquipment> miniappEquipmentList(FasEquipment fasEquipment);

    List<FasEquipmentStatusHistory> listDevicePointData(FasEquipmentStatusHistory history);

    AjaxResult importFasEquipment(List<FasEquipment> equipmentList);
}
